import 'package:xin_nuo_pda/bean/lot_id_entity_entity.dart';

lotIdEntityFromJson(LotIdEntity data, Map<String, dynamic> json) {
	if (json['LOTID'] != null) {
		data.lOTID = json['LOTID'].toString();
	}
	if (json['MAINQTY'] != null) {
		data.MAINQTY = json['MAINQTY'] is String
				? int.tryParse(json['MAINQTY'])
				: json['MAINQTY'].toInt();
	}
	return data;
}

Map<String, dynamic> lotIdEntityToJson(LotIdEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['LOTID'] = entity.lOTID;
	data['MAINQTY'] = entity.MAINQTY;
	return data;
}